﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApplication2
{
    public partial class _Default : Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void ButtonQuery_Click(object sender, EventArgs e)
        {
            string city = this.TextBoxCity.Text;
            ServiceReference1.WeatherWebServiceSoapClient client = new ServiceReference1.WeatherWebServiceSoapClient();
            string[] result = client.getWeatherbyCityName("唐山");
            StringBuilder sb = new StringBuilder();
            foreach (string s in result)
            {
                sb.Append(s + "<br />");
            }
            this.LabelWeatherForcast.Text = sb.ToString();
        }
    }
}